<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <!-- 在函数内部，声明的变量如果没有使用var关键字，js将其识别为全局变量 -->
    <!-- <script>
        function func(){
            var b=30;

        }
        func();
        console.log(b);
    </script> -->
    <script>
        // 常量一旦创建不可修改
        const a = 0.618;
        // a=40;
        console.log(a);
    </script>
    
</body>
</html>